<?php
/**
 * Created by PhpStorm.
 * User: Duyonggao
 * Date: 2017/9/28 0028
 * Time: 下午 5:12
 * @var $url string
 */

?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <style>
        html { height: 100%; width: 100%; }
    </style>
</head>
<body style="height: 100%; margin: 0; padding: 0; overflow-y: hidden;">
<iframe id="aaa" name="aaa" src="<?=$url?>" frameborder="0" scrolling="auto" width="100%" height="100%"  style="top: 0px;"></iframe>
<script>
    var tb_url = "<?=$url?>".replace("http://", "").replace("https://", "");
    var ifr = document.createElement('iframe');
    ifr.src = 'taobao://' + tb_url;
    ifr.style.display = 'none';
    document.body.appendChild(ifr);
</script>
</body>
</html>
